package com.design.decorate;

/**
 * @author cxx
 * @create 2020-04-20 15:51
 **/
public class Main {

    /**
     * 装饰者模式
     * @param args
     */
    public static void main(String[] args) {

        Decorator decorator = new AfterDecorator ("真TM可爱",new BeforeDecorator ("顽皮的",new DefaultDecorator ()));;
        String describe = decorator.describe ("小狗");
        System.out.println (describe);


    }

}
